<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>医疗管理系统</title>
    <script type="text/javascript" src="js/new_file.js" charset="utf-8"></script>
    <script type="text/javascript">
    	$(function(){
    		if(${param.action == "purperson"}){
    			$(".top").attr("src","mainPage/top.jsp?action=purperson");
    			$(".left").attr("src","mainPage/left.jsp?action=purperson");
    		}else if(${param.action == "shopowner"}){
    			$(".top").attr("src","mainPage/top.jsp?action=shopowner");
    			$(".left").attr("src","mainPage/left.jsp?action=shopowner");
    		}else if(${param.action == "clerk"}){
    			$(".top").attr("src","mainPage/top.jsp?action=clerk");
    			$(".left").attr("src","mainPage/left.jsp?action=clerk");
    		}
    	});
    </script>

  </head>
  
  <frameset rows="87px,*,31" border="0">
		<frame src="mainPage/top.jsp" scrolling="No" noresize="noresize" frameborder="0" class="top">
		
		<frameset cols="150px,*" border="0">
			<frame src="mainPage/left.jsp" noresize="noresize" scrolling="no" frameborder="0" class="left">
			<frame src="index.jsp" noresize="noresize" frameborder="0" name="rightFrame">
			
		</frameset>
		
		<frame src="mainPage/footer.jsp"  noresize="noresize" frameborder="0"> 
  </frameset>
	
</html>
